<?php

class OlistGoodViewModel extends ViewModel{
	
	public $table='olist';
	
	 public $view=array(
	  	'olist' =>
	  	 array(
	    '_type' => 'INNER',
	  	 ),
	  	'good' =>
	  	 array(
	  	  '_type' => 'INNER',
	  	  '_on' => 'olist.gid=good.gid',
   	),
   );
	
	
	public function get_all_data($where=null){
		
		return $this->where($where)->all();
	}
	
	
}









